package pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Publishfile entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Publishfile implements java.io.Serializable {

	// Fields

	private Integer pid;
	private Persion persion;
	private Block block;
	private Date ptime;
	private String pname;
	private String pdestnation;
	private String pnumber;
	private String pcontent;
	private String pfile;
	private Integer isDraft;
	private String pfType;
	private String yiJian;
	private String sender;
	private Integer status;
	private String isRead;
	private Set pubprjects = new HashSet(0);
	private Set publishviews = new HashSet(0);

	// Constructors

	/** default constructor */
	public Publishfile() {
	}

	/** minimal constructor */
	public Publishfile(Integer status, String isRead) {
		this.status = status;
		this.isRead = isRead;
	}

	/** full constructor */
	public Publishfile(Persion persion, Block block, Date ptime, String pname,
			String pdestnation, String pnumber, String pcontent, String pfile,
			Integer isDraft, String pfType, String yiJian, String sender,
			Integer status, String isRead, Set pubprjects, Set publishviews) {
		this.persion = persion;
		this.block = block;
		this.ptime = ptime;
		this.pname = pname;
		this.pdestnation = pdestnation;
		this.pnumber = pnumber;
		this.pcontent = pcontent;
		this.pfile = pfile;
		this.isDraft = isDraft;
		this.pfType = pfType;
		this.yiJian = yiJian;
		this.sender = sender;
		this.status = status;
		this.isRead = isRead;
		this.pubprjects = pubprjects;
		this.publishviews = publishviews;
	}

	// Property accessors

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Persion getPersion() {
		return this.persion;
	}

	public void setPersion(Persion persion) {
		this.persion = persion;
	}

	public Block getBlock() {
		return this.block;
	}

	public void setBlock(Block block) {
		this.block = block;
	}

	public Date getPtime() {
		return this.ptime;
	}

	public void setPtime(Date ptime) {
		this.ptime = ptime;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPdestnation() {
		return this.pdestnation;
	}

	public void setPdestnation(String pdestnation) {
		this.pdestnation = pdestnation;
	}

	public String getPnumber() {
		return this.pnumber;
	}

	public void setPnumber(String pnumber) {
		this.pnumber = pnumber;
	}

	public String getPcontent() {
		return this.pcontent;
	}

	public void setPcontent(String pcontent) {
		this.pcontent = pcontent;
	}

	public String getPfile() {
		return this.pfile;
	}

	public void setPfile(String pfile) {
		this.pfile = pfile;
	}

	public Integer getIsDraft() {
		return this.isDraft;
	}

	public void setIsDraft(Integer isDraft) {
		this.isDraft = isDraft;
	}

	public String getPfType() {
		return this.pfType;
	}

	public void setPfType(String pfType) {
		this.pfType = pfType;
	}

	public String getYiJian() {
		return this.yiJian;
	}

	public void setYiJian(String yiJian) {
		this.yiJian = yiJian;
	}

	public String getSender() {
		return this.sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getIsRead() {
		return this.isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	public Set getPubprjects() {
		return this.pubprjects;
	}

	public void setPubprjects(Set pubprjects) {
		this.pubprjects = pubprjects;
	}

	public Set getPublishviews() {
		return this.publishviews;
	}

	public void setPublishviews(Set publishviews) {
		this.publishviews = publishviews;
	}

}